package coder.nav.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class NavTaskActionVO implements Serializable {

    @ApiModelProperty("是否需要转md")
    private boolean needToHtml = true;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("雪花id")
    private Long actionId;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("内容")
    private String context;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("执行方法（类名）")
    private String actionFunction;

    @ApiModelProperty("执行时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date actionTime;

}
